import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'index',
    component: () => import( '../views/index.vue')
  },
  {
    path: '/Login',
    name: 'Login',
    component: () => import( '../views/login.vue')
  },
  {
    path: '/:catchAll(.*)',
    name: '/404',
    component: () => import( '../views/404.vue')
  },
  {
    path: '/game',
    name: 'game',
    component: () => import( '../views/game.vue')
  },
  {
    path: '/css_style',
    name: 'css_style',
    component: () => import( '../views/css_style.vue')
  },
  {
    path: '/wanggou',
    name: 'wanggou',
    component: () => import( '../views/Page/wanggou.vue')
  },
  {
    path: '/wangyiyun',
    name: 'wangyiyun',
    component: () => import( '../views/Page/wangyiyun.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
